import { BackSide, Mesh, MeshBasicMaterial, PlaneGeometry } from "three";
import Base from "../Base";

export default class World {
  private plane: Mesh;
  constructor() {
    const base = Base.getInstance();
    const geometry = new PlaneGeometry(10, 10);
    const material = new MeshBasicMaterial({
      color: 0xfefefe,
      side: BackSide,
    });
    this.plane = new Mesh(geometry, material);
    this.plane.rotateX(Math.PI * 0.5);

    base.scene.add(this.plane);
  }
}
